<?php


namespace App\Http\Controllers\Admin;


use App\Http\Controllers\Controller;
use App\Utils\MyLog;
use App\Utils\ResponseUtil;
use Illuminate\Support\Facades\Log;

class LogRoleTaskController extends Controller
{

    public function paginate(){ //查询ES数据库
        global $gameArea;
        $params = request()->all();
        MyLog::error(date("Y-m-d H:i:s")."  进来了的请求参数: " . json_encode($params));
        $result = callRpc('/RoleTaskService/paginate',$params,['gameArea'=>$gameArea]);
        // snap_time
        if($result){
        foreach($result['data'] as &$item){
            $item['roletask_datetime'] = date("Y-m-d H:i:s");
        }
        }
        return ResponseUtil::json($result);
    }




}
